//
//  LOLHeroModel.m
//  LOLXXbox
//
//  Created by dllo on 16/1/27.
//  Copyright © 2016年 Grasstrio. All rights reserved.
//

#import "LOLHeroModel.h"

@implementation LOLHeroModel

- (instancetype)initWithData:(NSDictionary *)data
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:data];

    }
    return self;
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.enName forKey:@"enName"];
    [aCoder encodeObject:self.cnName forKey:@"cnName"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.tags forKey:@"tags"];
    [aCoder encodeObject:self.rating forKey:@"rating"];
    [aCoder encodeObject:self.location forKey:@"Location"];
    [aCoder encodeObject:self.price forKey:@"price"];
    
    
    
}
-(id)initWithCoder:(NSCoder *)aDecoder
{
    self=[super init];
    if (self) {
        
        self.enName =[aDecoder decodeObjectForKey:@"enName"];
        self.cnName=[aDecoder decodeObjectForKey:@"cnName"];
        self.title=[aDecoder decodeObjectForKey:@"title"];
        self.tags=[aDecoder decodeObjectForKey:@"tags"];
        self.rating=[aDecoder decodeObjectForKey:@"rating"];
        self.location=[aDecoder decodeObjectForKey:@"Location"];
        self.price=[aDecoder decodeObjectForKey:@"price"];
   
    }
    return self;
    
    
}


@end
